// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';

// 加载项目的业务配置文件
import settings from "./settings";
// ajax
import axios from "axios"
// xterm
import 'xterm/css/xterm.css'
import 'xterm/lib/xterm'

// echarts图标插件
import * as echarts from 'echarts';

Vue.use(Antd);

Vue.prototype.$settings = settings;  // prototype 原型链
axios.defaults.withCredentials = false;     // 是否在ajax请求时允许携带cookie到服务端
axios.defaults.baseURL = settings.host;     // 设置服务端api的域名
axios.defaults.timeout = 30000;             // 请求超时的时间

Vue.prototype.$axios = axios;

Vue.prototype.$echarts = echarts;

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: {App},
  template: '<App/>'
})
